package main

import (
	"fmt"
	"time"
	"k8s.io/client-go/util/workqueue"
)

func main(){
	
        q:=  workqueue.NewDelayingQueue()

        first := "foo"

	q.AddAfter(first, 10*time.Second)
	q.AddAfter("bobo", 1*time.Second)
	


	i,_ := q.Get()


	q.Done(i)



	fmt.Println("ok",i)


	        i,_ = q.Get()

		        q.Done(i)

	fmt.Println("ok",i)
}
